
sum = 10000
for i in range(1,21):
    import random
    num = random.randint(1, 10)
    if num < 5:
        print(f"员工{i}，绩效分{num}，低于5，不发工资，下一位")
        continue
    if sum >= 1000:
        sum -= 1000
        print(f"向员工{i}发放工资1000元，账户余额还剩余{sum}元")
    else:
        print(f"余额不足，当前余额{sum}元，不足以发工资，下个月来领")
        break
